package com.example.mapper;

import com.example.entity.FootPrint;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.entity.buyer.FootPrintPo;

import java.util.Date;
import java.util.List;

/**
* @author 朽
* @description 针对表【foot_print】的数据库操作Mapper
* @createDate 2024-06-05 15:43:20
* @Entity com.example.entity.FootPrint
*/
public interface FootPrintMapper extends BaseMapper<FootPrint> {
    List<Long> getSpuIdByUserId(Long userId);

    void updateDeleteFlagByUserId(Long userId);

    Date getFootprintTimeBySpuId(Long userId, Long spuId);

    Integer getFlagBySpuId(Long userId, Long spuId);

    List<FootPrint> selectFootprintsByUserId(Long userId);

    void updateFootprintTime(Long id, Date time);

    void updateDeleteFlag(Long id, int flag);

    void insertFootprint(FootPrintPo footprint);

    FootPrint findBySpuId(Long userId,Long spuId);
}




